package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.BaseAttribute;
import com.atguigu.tingshu.model.album.BaseCategory1;
import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.atguigu.tingshu.vo.album.AlbumCategoryVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface BaseCategoryService extends IService<BaseCategory1> {

    //查询所有分类信息
    List<AlbumCategoryVo> getBaseCategoryList();

    //根据1级分级分类id查询专辑的属性和属性值
    List<BaseAttribute> findAttributeByCategoryId(Integer category1Id);

    //根据3级分类id查询分类信息
    BaseCategoryView findCategoryInfoByC3Id(Long category3Id);

    //根据1级分类id查询分类信息
    AlbumCategoryVo getAllCategoryList(Long category1Id);

    //根据1级分类id查询三级分类信息
    List<BaseCategory3> findTopBaseCategory3(Long category1Id);
}
